﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" x:Class="MainWindow"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        
        <ComboBox ItemsSource="{Binding Interfaces}" Grid.Row="0" x:Name="Combo">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding NIC}"/>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>

        <xctk:PropertyGrid Grid.Row="1" SelectedObject="{Binding SelectedItem, ElementName=Combo}" />

        <xctk:PropertyGrid Grid.Row="2" SelectedObject="{Binding TunlrDNS}" />

        <DockPanel Grid.Row="3" HorizontalAlignment="Center">
            <Button Content="Sync" Click="Button_Click_1" MinWidth="100"/>
            <Button Content="Reset" Click="Button_Click_2" MinWidth="100"/>
        </DockPanel>


        <xctk:PropertyGrid Grid.Row="1" Grid.Column="1" SelectedObject="{Binding }" />


    </Grid>
</Window>
